package com.coffee.price;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.coffee.price.common.BasicActivity;

public class AppsInfoActivity extends BasicActivity {
	
	public RelativeLayout cauly;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.info);
        
        
        //===========타이틀 영역===========
        txt_title = (TextView)findViewById(R.id.txt_title);
        //txt_title.setText(getResources().getString(R.string.app_title));
        
        btn_title_left = (ImageButton)findViewById(R.id.btn_title_left);
        btn_title_left.setBackgroundDrawable(getResources().getDrawable(R.drawable.icon_back));
        
        btn_title_left.setOnClickListener(this);
        //===========타이틀 영역===========
        
        /*//부모 레이아웃.
        cauly = (RelativeLayout)findViewById(R.id.cauly_layout);
        
        //데이터 채우기
        AdInfo info = new AdInfo();
        info.initData("w8LQXZAq0F", "cpc", "all", "all", "off", "circle", "yes", 90);
        
        //광고 View
        AdView adView = new AdView(this);
        
        RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
				LayoutParams.FILL_PARENT,
				LayoutParams.WRAP_CONTENT);	
        //부모 레이어 하단에 위치할때.
        params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
        
        adView.setVisibility(View.VISIBLE);
		adView.setLayoutParams(params);
		
		//레이아웃 적용.
		cauly.addView(adView);*/
    }
    
    public void onClick(View v) {
    	
    	if(v == btn_title_left){
    		finish();
    	}
    }
}